<? $page_title='材料信息' ?>
<? include "FASHION/page_header.phtml" ?>

<form  method="post" id="form1">
<table class="select">
<tr>
	<td>材料分类</td>
	<td><script>root_stuffcls('class_id[]','class_id','<{$ware.class_path}>');</script></td>
</tr>
<tr>
	<td>仓库</td>
	<td><?= Html::options($warehouse, 'warehouse_id', $ware.warehouse_id, 'name','','')?></td>
</tr>
<tr>
	<td>编号</td>
	<td><span id="precode"><{$ware.cls_code}></span><input type="text" name="sno" size="12" value="<{$ware._sno}>" /></td>
</tr>
<tr>
	<td width="20%">材料名称</td>
	<td><input type="text" name="name" size="40" value="<{$ware.name}>" /></td>
</tr>
<!--<tr>
	<td>参考单价</td>
	<td><input type="text" name="price" size="12" value="<{$ware.price}>" class="decimal fnum" onfocus="chkdig_float(this)" />元</td>
</tr>-->
<tr>
	<td>计量单位</td>
	<td><input type="text" name="unit" size="5" value="<{$ware.unit}>" /></td>
</tr>
<tr>
	<td>品牌</td>
	<td><input type="text" name="brand" size="12" value="<{$ware.brand}>" /></td>
</tr>
<tr>
	<td>规格</td>
	<td><input type="text" name="specific" size="25" value="<{$ware.specific}>" /></td>
</tr>

<tr>
	<td colspan=2 class="center">
		<input type="button" value="返 回" class="button" onclick="gback('<? url("ware") ?>')" /> &nbsp;
		<input type="submit" value="保存信息" class="button" />
	</td>
</tr>

</table>
</form>

<script language="JavaScript">
ajax_form({before:function(){ return confirm('确认提交信息吗？');},'success':function(){g2('<? url("ware") ?>');}});
</script>

<? include "FASHION/page_footer.phtml" ?>
